﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Data;
using DBManager.Admin;

namespace BO.Admin
{
    public class ImagesBO
    {
        #region giao dien
        public static int UpdateVoteImagesBO(string ID)
        {
            return ImagesDAL.UpdateVoteImages(ID);
        }
        public static int UpdateFacebookCountBO(string ID, string like, string share, string comment)
        {
            return ImagesDAL.UpdateFacebookCount(ID, like, share, comment);
        }
        public static DataTable getAllImagesOther(string name, string top, string ID)
        {
            return ImagesDAL.getAllImagesOther(name, top, ID);
        }
        #endregion

        #region vong thi dau
        public static DataTable GetInfomationRoundByRoundAwardsBO(string RoundAwards)
        {
            return ImagesDAL.GetInfomationRoundByRoundAwards(RoundAwards);
        }
        public static DataTable GetAllRound(string round)
        {
            return ImagesDAL.GetAllRound(round);
        }
        public static int AddRoundBO(string Title, string Content, string StartDate, string EndDate, string Status, string RoundAwards)
        {
            return ImagesDAL.AddRound(Title, Content, StartDate, EndDate, Status, RoundAwards);
        }
        public static int EditRoundBO(string Title, string Content, string StartDate, string EndDate, string Status, string RoundAwards, string ID)
        {
            return ImagesDAL.EditRound(Title, Content, StartDate, EndDate, Status, RoundAwards, ID);
        }
        public static DataTable GetInfomationRoundBO(string id)
        {
            return ImagesDAL.GetInfomationRound(id);
        }
        public static DataTable GetAllAwardsBO(string RoundAwards)
        {
            return ImagesDAL.GetAllAwards(RoundAwards);
        }
        #endregion

        #region thi ảnh
        public static int UpdateImageFileBO(string ID, string img)
        {
            return ImagesDAL.UpdateImageFile(ID, img);
        }
        public static int UpdateImageThumbList(string ID, string url)
        {
            return ImagesDAL.UpdateImageThumbList(ID, url);
        }
        public static int UpdateImageThumb(string ID, string url)
        {
            return ImagesDAL.UpdateImageThumb(ID, url);
        }
        public static int UpdateVoteImagesByPointBO(string ID, string Number)
        {
            return ImagesDAL.UpdateVoteImagesByPoint(ID, Number);
        }
        public static int UpdateStatusRoundBO(string round, string Status)
        {
            return ImagesDAL.UpdateStatusRound(round, Status);
        }
        public static int EditIsFocusImagesBO(string ID, string isFocus)
        {
            return ImagesDAL.EditIsFocusImages(ID, isFocus);
        }
        public static DataTable GetInfomationImagesBO(string ID)
        {
            return ImagesDAL.GetInfomationImages(ID);
        }
        public static DataTable getAllImagesDoatGiaiBO(string search, string startDate, string endDate, string dkCount, string status, string round, string giaiID)
        {
            return ImagesDAL.getAllImagesDoatGiai(search, startDate, endDate, dkCount, status, round, giaiID);
        }
        public static DataTable getAllImagesBO(string search, string startDate, string endDate, string dkCount, string status, string round, string CheckShowTheoVong, string orderby)
        {
            return ImagesDAL.getAllImages(search, startDate, endDate, dkCount, status, round, CheckShowTheoVong, orderby);
        }
        public static int addImgDoatGiaiBO(string ImageId, string AwardsID)
        {
            return ImagesDAL.addImgDoatGiai(ImageId, AwardsID);
        }
        public static int EditStatusAnhDoatGiaiBO(string ID, string status)
        {
            return ImagesDAL.EditStatusAnhDoatGiai(ID, status);
        }
        public static int EditStatusImagesBO(string ID, string status)
        {
            return ImagesDAL.EditStatusImages(ID, status);
        }
        #endregion
    }
}
